import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useUserQuestionStore = defineStore(
  'userQuestion',
  () => {
    const UserQuestionInfo = ref()
    const setUserQuestionInfo = (UserQuestion) => {
      UserQuestionInfo.value = UserQuestion
    }
    const removeUserQuestionInfo = () => {
      UserQuestionInfo.value = null
    }

    return {
      UserQuestionInfo,
      setUserQuestionInfo,
      removeUserQuestionInfo
    }
  },
  {
    persist: {
      enabled: true,
      storage: localStorage
    }
  }
)
